package com.lfy.spring;

import com.lfy.spring.bean.Person;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author leifengyang
 * @version 1.0
 * @date 2025/8/9 20:05
 * @description:
 */
@EnableTransactionManagement
@SpringBootApplication
public class SpringMainApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext ioc = SpringApplication.run(SpringMainApplication.class, args);

        String[] definitionNames = ioc.getBeanDefinitionNames();
        for (String definitionName : definitionNames) {
            System.out.println(definitionName);
        }
    }




}
